<?php

namespace App\Exceptions;

use Exception;

class TrainOrderDeletedException extends Exception
{
    private string $origin_order_sn;

    public function __construct(string $message = "", string $origin_order_sn = '')
    {
        parent::__construct($message, 404);
        $this->origin_order_sn = $origin_order_sn;
    }

    public function getOriginOrderSn(): string
    {
        return $this->origin_order_sn;
    }
}
